//1.日志开关
#ifdef DEBUG
// 调试状态
#define ILLog(...) NSLog(__VA_ARGS__)
#else
// 发布状态
#define ILLog(...)
#endif

//2.判断是否为iOS7
#define iOS7 [[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0

//3.获得颜色
#define  ILColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

//4.加载JSON对象
#define ILJson(name) \
[NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:[[NSBundle mainBundle]URLForResource:@#name withExtension:nil ]]options:NSJSONReadingAllowFragments error:nil];

//5.全局背景色
#define ILGlobalBg [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg"]]




//6.判断是否为4inch
#define  is4inch ([UIScreen mainScreen].bounds.size.height == 568.0)